package com.distribute.core.constants;

import com.distribute.common.NotifyPluginType;

/**
 * 连接
 *
 * @author chennengcheng
 * @date 2021-09-13 14:30
 * @remark
 */


public class LocalCacheConstants {

    /**
     * 加载此插件的 应用的ip
     */
    private static String ip = "0.0.0.0";

    /**
     * 加载此插件的 默认服务名
     */
    private static String serviceName = "";

    /**
     * 加载此插件的环境
     */
    private static String activeProfile = "";

    /**
     * 加载此插件的 后默认 5秒上报一次
     */
    private static int reportTime = 5;

    /**
     * 连接状态 connected / disconnected 默认未连接
     */
    private static String status = "disconnected";

    /**
     * 通知插件类型
     */
    private static NotifyPluginType notifyPluginType = NotifyPluginType.REDIS;

    public static String getIp() {
        return ip;
    }

    public static void setIp(String ip) {
        LocalCacheConstants.ip = ip;
    }

    public static String getServiceName() {
        return serviceName;
    }

    public static void setServiceName(String serviceName) {
        LocalCacheConstants.serviceName = serviceName;
    }

    public static int getReportTime() {
        return reportTime;
    }

    public static void setReportTime(int reportTime) {
        LocalCacheConstants.reportTime = reportTime;
    }

    public static String getActiveProfile() {
        return activeProfile;
    }

    public static void setActiveProfile(String activeProfile) {
        LocalCacheConstants.activeProfile = activeProfile;
    }

    public static String getStatus() {
        return status;
    }

    public static void setStatus(String status) {
        LocalCacheConstants.status = status;
    }

    public static NotifyPluginType getNotifyPluginType() {
        return notifyPluginType;
    }

    public static void setNotifyPluginType(NotifyPluginType notifyPluginType) {
        LocalCacheConstants.notifyPluginType = notifyPluginType;
    }

}
